{include file="pub_header.htm"}

<div class="out_table">
<table width="100%" cellpadding="3" cellspacing="0" border="0" align="center" class="current_place">
  <tr>
    <td align="left" nowrap>&nbsp;
      <a href="{$lang.s._public.global.weburl}" target="_self" class="current_place">{$lang.s._public.global.website}</a>
      &raquo; <a href="{$control_index}?act=index" target="_self" class="current_place">论坛首页</a>
      &raquo; <a href="{$control_index}?act=register" target="_self" class="current_place">会员注册</a>
    </td>
    <td align="right" nowrap>&nbsp;</td>
  </tr>
</table>
</div>

<div class="out_table"><div class="space"></div></div>
<div class="out_table">
<form id="register_member" name="register_member" method="post" action="javascript:void(null);" enctype="multipart/form-data">
<table width="98%" cellpadding="3" cellspacing="0" border="0" align="center" class="block_group">
  <tr align="left" class="block_header">
    <td colspan="3">会员注册</td>
  </tr>
  <tr align="left">
    <td width="15%" class="block_left">用户:</td>
    <td width="46%" class="block_right"><input type="text" id="username" name="username" class="input" size="30" /></td>
    <td width="39%" class="block_right"><span id="username_return" name="username_return"><span class="prompt_primal">4-30字节</span></span></td>
  </tr>
  <tr align="left">
    <td class="block_left">密码:</td>
    <td class="block_right"><input type="password" id="password1" name="password1" class="input" size="30" /></td>
    <td class="block_right"><span id="password1_return" name="password1_return"><span class="prompt_primal">6-30字节</span></span></td>
  </tr>
  <tr align="left">
    <td class="block_left">确认密码:</td>
    <td class="block_right"><input type="password" id="password2" name="password2" class="input" size="30" /></td>
    <td class="block_right"><span id="password2_return" name="password2_return"><span class="prompt_primal">密码确认</span></span></td>
  </tr>
  <tr align="left">
    <td class="block_left">E-mail:</td>
    <td class="block_right"><input type="text" id="email" name="email" class="input" size="30" /></td>
    <td class="block_right"><span id="email_return" name="email_return"><span class="prompt_primal">找回密码将用到E-mail,请认真填写</span></span></td>
  </tr>
  <tr align="left">
    <td class="block_left">密码提示问题:</td>
    <td class="block_right">
      <select id="question" name="question" class="select" />
        <option value="">= 请选择 =</option>
        {return_select sort="question"}
        {foreach name=question from=$question item=item}
        <option value="{$item.id}">{$item.name}</option>
        {/foreach}
        <option value="custom">= 自定义密码提示问题 =</option>
      </select>
      <span id="question_custom_show" name="question_custom_show"></span>
    </td>
    <td class="block_right"><span id="question_return" name="question_return"><span class="prompt_primal">选择密码提示问题,找回密码等重要操作将用到密码提示问题</span></span></td>
  </tr>
  <tr align="left">
    <td class="block_left">密码提示答案:</td>
    <td class="block_right"><input type="text" id="answer" name="answer" size="30"  class="input" value=""  /></td>
    <td class="block_right"><span id="answer_return" name="answer_return"><span class="prompt_primal">选择密码提示答案,找回密码等重要操作将用到密码提示答案</span></span></td>
  </tr>
  <tr align="left">
    <td class="block_left">验证码:</td>
    <td class="block_right">
      <input type="text" id="verifycode" name="verifycode" size="4" maxlength="4" class="input" value=""  />
      <span style="cursor:pointer;" onclick="xajax_switch_verifycode('vc_register_show','{$control_index}','vc_register');"><span id="vc_register_show"><img src="{$control_index}?act=verifycode&vc=vc_register" border="0" align="absmiddle"></span></span>              </td>
    <td class="block_right"><span id="verifycode_return" name="verifycode_return"><span class="prompt_primal">为防止恶意批量注册,请输入左侧验证码</span></span></td>
  </tr>
  <tr>
    <td class="block_left">{$lang.s._public.global.website}条款</td>
    <td class="block_right" colspan="2">
    <div class="block_salient" style="width:600px;height:300px;padding:3px;overflow:auto;"><div align="center">{$lang.s._public.global.website}条款</div><br />{$lang.s.register.forum_rule}</div>
    </td>
  </tr>
  <tr>
    <td class="block_left"></td>
    <td class="block_right"><input type="checkbox" id="agree" name="agree" value="1" class="checkbox" />我已阅读并接受[<span class="salient">{$lang.s._public.global.website}条款</span>]</td>
    <td class="block_right" ><span id="agree_return"><span class="prompt_primal">您必须同意服务条款才能注册</span></span></td>
  </tr>
  <tr>
    <td colspan="3" align="center" class="block_footer">
      <input type="button" id="register_submit" name="register_submit" value="确定" class="button"
         onclick="xajax.$('register_submit').disabled=true;
                  xajax.$('register_submit').value='请等待...';
                  xajax_register_member(xajax.getFormValues('register_member'));" /></td>
  </tr>
  </table>
  </form>
  </td>
  </tr>
</table>
</div>

{include file="pub_footer.htm"}